import request from '@/utils/request'

export function getMediaList(data) {
  return request({
    url: 'xingyue/media/media/list/API_001',
    method: 'post',
    data:data
  })
}


export function getMediaById(id) {
  return request({
    url: 'xingyue/media/media/getById/API_002/'+id,
    method: 'post',
  })
}

export function updateMedia(data) {
  return request({
    url: 'xingyue/media/media/update/API_003',
    method: 'post',
    data:data
  })
}

export function deleteMedia(id) {
  return request({
    url: 'xingyue/media/media/delete/API_004/'+id,
    method: 'post',
  })
}



